<script>
export default {
  onLaunch: function () {
    // 获取设备机型
    uni.getSystemInfo({
      success: res => {
        console.log('手机信息res' + res.model)
        let model = res.model;
        if (/iphone\sx/i.test(model) || (/iphone/i.test(model) && /unknown/.test(model)) || /iphone\s11/i.test(model)) {
          uni.setStorageSync('isIphoneX', '1')
          console.log(1)
        } else {
          uni.setStorageSync('isIphoneX', '0')
          console.log(0)
        }
      }
    })
  },
  onShow: function () {
    console.log('App Show')
  },
  onHide: function () {
    console.log('App Hide')
  }
}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
  .flex-between {
    justify-content: space-between;
  }
  .flex-around {
    justify-content: space-around;
  }
  .bg-f2f2f2 {
    background: #f2f2f2;
  }
  .bg-f7f7f7 {
    background: #f7f7f7;
  }
  .font-20 {
    font-size: 20upx;
  }
  .flex-center {
    justify-content: center;
    align-items: center;
  }
  .pd_r_20 {
    padding-right: 20upx;
  }
  .jright {
    justify-content: flex-end;
  }
  .eclipse-1 {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .row-column {
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
  .eclipse-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .eclipse-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .eclipse-6 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
    line-height: 40upx;
    margin-bottom: 20upx;
  }
  .color-333, .col-333 {
    color: #333;
  }
  .text-cent {
    text-align: center;
  }
  .color-666,.col-666 {
    color: #666;
  }
  .color-999, .col-999 {
    color: #999;
  }
  .color-active, .col-FF8B37, .col-FF6251 {
    color: #2A6AAA;
  }
  .table {
    border:1px solid #f1f1f1;
  }
  .mg_r_30 {
    margin-right: 30upx;
  }
  .pd_t_20 {
    padding-top: 20upx;
  }
  .font-24 {
    font-size: 24upx;
  }
  .pd_l_30{
    padding-left: 30upx;
  }
  .flex-1 {
    flex: 1;
  }

  .row {
    display: flex;
  }

  .cont-center {
    align-items: center;
  }
  .pd_b_10 {
    padding-bottom: 10upx;
  }
  .pd_r_30 {
    padding-right: 30upx;
  }
  .mg_l_30 {
    margin-left: 30upx;
  }
  .mg_t_10 {
    margin-top: 10upx;
  }
  .font-28 {
    font-size: 28upx;
  }
  .font-36 {
    font-size: 36upx;
  }
  .font-32 {
    font-size: 32upx;
  }
  .font-30 {
    font-size: 30upx;
  }

  .col-fff {
    color: #fff;
  }
  .cont-center {
    align-items: center;
  }
  .pd_b_10 {
    padding-bottom: 10upx;
  }
  .pd_b_45 {
    padding-bottom: 40upx;
  }
  .pd_t_50 {
    padding-top: 40upx;
  }
  .bg-fff {
    background: #fff;
  }
  .yh_bd_bottom {
    position: relative;
    &:after {
      content: " ";
      position: absolute;
      left: 0;
      bottom: -2upx;
      right: 0;
      height: 2upx;
      border-bottom: 2upx solid #E5E5E5;
      color: #e0e0e0;
      -webkit-transform-origin: 0 0;
      transform-origin: 0 0;
      -webkit-transform: scaleY(0.5);
      transform: scaleY(0.5);
    }
  }
  .pd_r_10 {
    padding-right: 10upx;
  }
  page {
    height: 100%;
  }
  .mg_r_20 {
    margin-right: 20upx;
  }
  .mg_l_20 {
    margin-left: 20upx;
  }
  .mg_t_20 {
    margin-top: 20upx;
  }
  .pd_b_20 {
    padding-bottom: 20upx;
  }
  .pd_b_30 {
    padding-bottom: 30upx;
  }
  .pd_t_30 {
    padding-top: 30upx;
  }
  .pd_t_19 {
    padding-top: 19upx;
  }
  .font-26 {
    font-size: 28upx;
  }
  .font-22 {
    font-size: 24upx;
  }
  .col-666 {
    color: #666;
  }
  .col-333 {
    color: #333;
  }
  .font-b {
    font-weight: bold;
  }
  .pd_l_30 {
    padding-left: 30upx;
  }
  .mg_t_10 {
    margin-top: 10upx;
  }
  .mg_b_10 {
    margin-bottom: 10upx;
  }
  .mg_b_20 {
    margin-bottom: 20upx;
  }
  .pd_t_74 {
    padding-top: 74upx;
  }
  .pd_t_60 {
    padding-top: 60upx;
  }
  .pd_l_10 {
    padding-left: 10upx;
  }
  .bg-FF6251 {
    background: #FF6251;
  }
  .align-right {
    text-align: right;
  }
  .font-60 {
    font-size: 60upx;
  }

  .school_tag {
    border-radius: 8upx;
    height: 30upx;
    line-height: 30upx;
    padding: 0 10upx;
    margin-right: 10upx;
    color: rgba(64, 64, 64, 100);
    &:last-child {
      margin-right: 0;
    }
  }
  .school_tag_0 {
    background: #FEDFAC;
  }
  .school_tag_1 {
    background: #FECAAD !important;
  }
  .school_tag_2 {
    background: #81D8D0;
  }
  .school_tag_3 {
    background: #FEACAC;
  }
  .school_tag_4 {
    background: #ACE1FE;
  }
  .school_tag_5 {
    background: #F7ADFE;
  }
</style>
